/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.member.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 用户模块Entity
 * @author zhych
 * @version 2021-12-08
 */
@Data
public class Member extends DataEntity<Member> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="昵称", align=2, sort=1)
	private String nickname;		// 昵称
	@ExcelField(title="头像", align=2, sort=2)
	private String photo;		// 头像
	@ExcelField(title="openid", align=2, sort=3)
	private String openid;		// openid
	@ExcelField(title="用户类型", dictType="user_type", align=2, sort=4)
	private String type;		// 用户类型
	@ExcelField(title="会员类型", dictType="vip_type", align=2, sort=4)
	private String vipType;		// 会员类型
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="会员开始时间", align=2, sort=5)
	private Date startDate;		// 会员开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="会员结束时间", align=2, sort=6)
	private Date endDate;		// 会员结束时间
	@ExcelField(title="求购数量", align=2, sort=7)
	private Integer purchaseCount;		// 求购数量
	@ExcelField(title="车源数量", align=2, sort=8)
	private Integer carCount;		// 车源数量
	@ExcelField(title="手机号", align=2, sort=9)
	private String mobile;		// 手机号
	@ExcelField(title="姓名", align=2, sort=10)
	private String username;		// 姓名
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间

	private String takeState; // 免费会员领取状态
	
	public Member() {
		super();
	}
	
	public Member(String id){
		super(id);
	}
}